import { DataSetProps } from "choerodon-ui/pro/lib/data-set/DataSet";
import { FieldType } from "choerodon-ui/pro/lib/data-set/enum";

const shopDS = (): DataSetProps => (
  {
    paging: false,
    fields: [
      {
        name: 'code',
        type: FieldType.string,
        label: '编码',
        required: true,
      },
      {
        name: 'name',
        type: FieldType.string,
        label: '名称',
      },
      {
        name: 'price',
        type: FieldType.number,
        label: '价格',
      },
      {
        name: 'count',
        type: FieldType.number,
        label: '库存',
      },
      {
        name: 'desc',
        type: FieldType.string,
        label: '描述',
      },
      {
        name: 'status',
        type: FieldType.boolean,
        label: '状态',
      },
    ],
  }
);

export default shopDS;